#!/bin/sh

# MolViz.sh
# PyMol Plugin
#
# Created by Christian Muise on 25/01/08.
#  Copyright (c) 2008 Christian Muise. All rights reserved.

pyVer=$(python -V 2>&1)

arr=( `echo "$pyVer" | tr -s '.' ' '` )

if [ ${arr[2]}  -gt 4 ]
then
  ./pymol -l MolViz.py 1jnx.pdb | python MolVizGui.py
else
  ./pymol -l MolViz.py 1jnx.pdb | pythonw MolVizGui.py
fi
